package com.gmzg.gmzgnews.me.model;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * author: GD on 2016/11/1 11:18
 * email :2301722691@qq.com
 */
@Table(name = "user")
public class User {
    @Column(name = "_id",isId = true)
    private long id;
    @Column(name = "phonenumber")
    private String phoneNumber;
    @Column(name = "password")
    private String password;
    @Column(name = "image")
    private String image;
    @Column(name = "loginType")
    private String loginType;
    @Column(name = "username")
    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", password='" + password + '\'' +
                ", image='" + image + '\'' +
                ", loginType='" + loginType + '\'' +
                ", username='" + username + '\'' +
                '}';
    }
}